package com.hvgroup.modules.sanic.domain.po;

import com.hvgroup.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "conv_qa_session")
public class QaSession extends BaseEntity implements Serializable  {

    @Id
    @Column(name = "chat_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long chatId;

    @Column(name = "user_id", nullable = false)
    private Long userId;

    @Column(name = "app_id")
    private String appId;

    @Column(name = "app_name")
    private String appName;

    @Column(name = "conversation_id", length = 100)
    private String conversationId;

    @Column(name = "conversation_title", length = 255)
    private String title;

    @Column(name = "enable", nullable = false)
    private Boolean enable;

}
